<template>
  <div class="mobile-contact-query">
    <!-- 顶部导航栏 -->
    <div class="mobile-header">
      <div class="header-content">
        <h1 class="header-title">
          <i class="bi bi-person-lines-fill"></i>
          患者联系记录查询
        </h1>
        <div class="header-actions">
          <button class="btn btn-sm btn-outline-light" @click="refreshData" :disabled="loading">
            <i class="bi bi-arrow-clockwise"></i>
          </button>
          <button class="btn btn-sm btn-outline-light" @click="goBack">
            <i class="bi bi-arrow-left"></i>
          </button>
        </div>
      </div>
    </div>

    <!-- 主要内容区域 -->
    <div class="mobile-content">
      <!-- 查询表单 -->
      <div class="query-section">
        <div class="query-card">
          <div class="query-header">
            <i class="bi bi-search"></i>
            <span class="query-title">手机号查询</span>
          </div>
          <div class="query-body">
            <div class="input-wrapper">
              <div class="input-group">
                <label class="input-label">患者手机号</label>
                <input 
                  type="tel" 
                  class="form-control query-input" 
                  v-model="phoneNumber" 
                  placeholder="请输入患者手机号码"
                  maxlength="11"
                  @input="validatePhoneNumber"
                  @keyup.enter="queryContactRecords"
                >
              </div>
              <div v-if="phoneError" class="error-tip">
                <i class="bi bi-exclamation-triangle"></i>
                {{ phoneError }}
              </div>
            </div>
            <button 
              class="btn btn-primary btn-lg w-100 query-btn" 
              @click="queryContactRecords"
              :disabled="loading || !isValidPhone"
            >
              <i class="bi bi-search" v-if="!loading"></i>
              <div class="spinner-small" v-if="loading"></div>
              <span v-if="loading">查询中...</span>
              <span v-else>查询联系记录</span>
            </button>
          </div>
        </div>
      </div>

      <!-- 查询结果 -->
      <div class="results-section" v-if="hasSearched">
        <!-- 有数据时显示结果 -->
        <div v-if="contactRecords.length > 0" class="contact-list">
          <div class="results-header">
            <div class="results-title">
              <i class="bi bi-list-ul"></i>
              联系记录 ({{ contactRecords.length }}条)
            </div>
            <div class="results-info">
              查询手机号: {{ searchedPhone }}
            </div>
          </div>

          <div v-for="record in contactRecords" :key="record.id" class="contact-card">
            <!-- 患者基本信息 -->
            <div class="contact-header">
              <div class="patient-info">
                <div class="patient-name">
                  <i class="bi bi-person-fill"></i>
                  {{ record.patName || '-' }}
                </div>
                <div class="patient-id" v-if="record.patientId">
                  ID: {{ record.patientId }}
                </div>
              </div>
              <!-- <div class="contact-count">
                <span class="count-badge" :class="getContactCountClass(record.contactCount)">
                  {{ record.contactCount || 0 }}次联系
                </span>
              </div> -->
            </div>

            <!-- 患者详细信息 -->
            <div class="contact-details">
              <div class="detail-row">
                <span class="detail-label">身份证:</span>
                <span class="detail-value">{{ maskIdNumber(record.idNumber) }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">性别:</span>
                <span class="detail-value">{{ record.sex || '-' }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">电话:</span>
                <span class="detail-value phone">
                  <i class="bi bi-telephone"></i>
                  {{ formatPhoneNumber(record.phoneNumber) }}
                </span>
              </div>
              <div class="detail-row">
                <span class="detail-label">联系职工:</span>
                <span class="detail-value">{{ record.fullName || '-' }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">联系时间:</span>
                <span class="detail-value">{{ formatDateTime(record.contactTime1) || '-' }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">联系结果:</span>
                <span class="detail-value">{{ record.notes1 || '-' }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">任务余额:</span>
                <span class="detail-value amount">{{ formatCurrency(record.balance) }}</span>
              </div>
              <div class="detail-row">
                <span class="detail-label">当前余额:</span>
                <span class="detail-value amount">{{ formatCurrency(record.recentBalance) }}</span>
              </div>
            </div>

            <!-- 联系人信息 -->
            <div v-if="record.nextOfKin || record.nextOfKinPhone" class="contact-person">
              <div class="contact-person-header">
                <i class="bi bi-people"></i>
                <span>联系人信息</span>
              </div>
              <div class="contact-person-details">
                <div v-if="record.nextOfKin" class="detail-row">
                  <span class="detail-label">联系人:</span>
                  <span class="detail-value">{{ record.nextOfKin }}</span>
                </div>
                <div v-if="record.nextOfKinPhone" class="detail-row">
                  <span class="detail-label">联系人电话:</span>
                  <span class="detail-value phone">
                    <i class="bi bi-telephone"></i>
                    {{ formatPhoneNumber(record.nextOfKinPhone) }}
                  </span>
                </div>
              </div>
            </div>

            <!-- 职工信息 -->
            <div v-if="record.empName || record.empPhone" class="employee-info">
              <div class="employee-header">
                <i class="bi bi-person-badge"></i>
                <span>负责职工</span>
              </div>
              <div class="employee-details">
                <div v-if="record.empName" class="detail-row">
                  <span class="detail-label">职工姓名:</span>
                  <span class="detail-value">{{ record.empName }}</span>
                </div>
                <div v-if="record.empPhone" class="detail-row">
                  <span class="detail-label">职工电话:</span>
                  <span class="detail-value phone">
                    <i class="bi bi-telephone"></i>
                    {{ formatPhoneNumber(record.empPhone) }}
                  </span>
                </div>
              </div>
            </div>

            <!-- 联系状态和备注 -->
            <div class="contact-status">
              <div v-if="record.notes1" class="status-item">
                <span class="status-label">联系状态:</span>
                <span class="status-value contacted">
                  <i class="bi bi-check-circle"></i>
                  {{ record.notes1 }}
                </span>
              </div>
              <div v-if="record.notes2" class="status-item">
                <span class="status-label">备注:</span>
                <span class="status-value">{{ record.notes2 }}</span>
              </div>
            </div>

            <!-- 时间信息 -->
            <!-- <div class="time-info">
              <div class="time-item">
                <i class="bi bi-clock"></i>
                <span>记录时间: {{ formatDateTime(record.inputDate) }}</span>
              </div>
            </div> -->
          </div>
        </div>

        <!-- 无数据提示 -->
        <div class="empty-state" v-else>
          <div class="empty-icon">
            <i class="bi bi-inbox"></i>
          </div>
          <div class="empty-title">未找到联系记录</div>
          <div class="empty-subtitle">
            手机号 {{ searchedPhone }} 暂无相关联系记录
          </div>
        </div>
      </div>

      <!-- 使用说明 -->
      <div class="help-section" v-if="!hasSearched">
        <div class="help-card">
          <div class="help-header">
            <i class="bi bi-info-circle"></i>
            <span>使用说明</span>
          </div>
          <div class="help-content">
            <ul class="help-list">
              <li>请输入患者的11位手机号码</li>
              <li>系统将查询该手机号的所有联系记录</li>
              <li>包含患者基本信息、联系人信息和负责职工信息</li>
              <li>显示联系次数和最新联系状态</li>
            </ul>
          </div>
        </div>
      </div>
    </div>

    <!-- 加载状态 -->
    <div class="loading-overlay" v-if="loading">
      <div class="loading-content">
        <div class="spinner"></div>
        <div class="loading-text">正在查询联系记录...</div>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref, computed, onMounted } from 'vue'
import { useRouter } from 'vue-router'
import api from '@/utils/api'

const router = useRouter()

// 响应式数据
const phoneNumber = ref('')
const phoneError = ref('')
const loading = ref(false)
const hasSearched = ref(false)
const searchedPhone = ref('')
const contactRecords = ref([])

// 计算属性
const isValidPhone = computed(() => {
  return /^1[3-9]\d{9}$/.test(phoneNumber.value)
})

// 方法
const validatePhoneNumber = () => {
  const phone = phoneNumber.value
  if (!phone) {
    phoneError.value = ''
    return
  }
  
  if (!/^\d+$/.test(phone)) {
    phoneError.value = '手机号只能包含数字'
    return
  }
  
  if (phone.length > 11) {
    phoneNumber.value = phone.slice(0, 11)
    return
  }
  
  if (phone.length === 11 && !/^1[3-9]\d{9}$/.test(phone)) {
    phoneError.value = '请输入正确的手机号格式'
    return
  }
  
  phoneError.value = ''
}

const queryContactRecords = async () => {
  if (!isValidPhone.value) {
    phoneError.value = '请输入正确的11位手机号'
    return
  }

  loading.value = true
  hasSearched.value = false
  contactRecords.value = []
  
  try {
    const response = await api.post('/api/PatientCommunication/query', {
      phoneNumber: phoneNumber.value
    })
    
    if (response.data.success) {
      contactRecords.value = response.data.data || []
      searchedPhone.value = phoneNumber.value
      hasSearched.value = true
    } else {
      throw new Error(response.data.message || '查询失败')
    }
  } catch (error) {
    console.error('查询联系记录失败:', error)
    contactRecords.value = []
    searchedPhone.value = phoneNumber.value
    hasSearched.value = true
    
    // 显示错误提示
    phoneError.value = error.message || '查询失败，请稍后重试'
  } finally {
    loading.value = false
  }
}

const refreshData = () => {
  if (hasSearched.value && searchedPhone.value) {
    phoneNumber.value = searchedPhone.value
    queryContactRecords()
  }
}

const goBack = () => {
  router.back()
}

// 工具方法
const getContactCountClass = (count) => {
  const num = count || 0
  if (num === 0) return 'count-zero'
  if (num <= 2) return 'count-low'
  if (num <= 5) return 'count-medium'
  return 'count-high'
}

const maskIdNumber = (idNumber) => {
  if (!idNumber) return '-'
  if (idNumber.length <= 8) return idNumber
  return idNumber.slice(0, 4) + '****' + idNumber.slice(-4)
}

const formatPhoneNumber = (phone) => {
  if (!phone) return '-'
  if (phone.length === 11) {
    return phone.replace(/(\d{3})(\d{4})(\d{4})/, '$1 $2 $3')
  }
  return phone
}

const formatCurrency = (amount) => {
  if (amount === null || amount === undefined) return '¥0.00'
  return `¥${Number(amount).toFixed(2)}`
}

const formatDateTime = (dateTime) => {
  if (!dateTime) return '-'
  return new Date(dateTime).toLocaleString('zh-CN', {
    year: 'numeric',
    month: '2-digit',
    day: '2-digit',
    hour: '2-digit',
    minute: '2-digit'
  })
}

// 组件挂载
onMounted(() => {
  // 页面初始化逻辑
})
</script>

<style scoped>
/* 基础布局 */
.mobile-contact-query {
  min-height: 100vh;
  background: #f8f9fa;
  padding-bottom: env(safe-area-inset-bottom);
}

/* 顶部导航栏 */
.mobile-header {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1565c0;
  padding: 0.32rem;
  padding-top: calc(0.32rem + env(safe-area-inset-top));
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #90caf9;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
  color: #0d47a1;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 32px;
}

.header-title i {
  font-size: 1.1rem;
  line-height: 1;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.header-actions .btn {
  border-radius: 6px;
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: #1976d2;
  color: #1976d2;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

.header-actions .btn:hover {
  background: #1976d2;
  color: white;
  border-color: #1976d2;
}

/* 主要内容区域 */
.mobile-content {
  padding: 1rem;
}

/* 查询表单 */
.query-section {
  margin-bottom: 2rem;
}

.query-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.query-header {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.query-title {
  font-size: 1.1rem;
  font-weight: 600;
}

.query-body {
  padding: 1.5rem;
}

.input-wrapper {
  margin-bottom: 1.5rem;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.input-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.95rem;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 80px;
}

.query-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.query-input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.error-tip {
  color: #dc3545;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 81px; /* 与输入框左对齐，考虑标签宽度80px + gap 1rem */
}

.query-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.query-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.query-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.spinner-small {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 查询结果 */
.results-section {
  margin-bottom: 2rem;
}

.results-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.results-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.results-info {
  color: #6c757d;
  font-size: 0.9rem;
}

/* 联系记录卡片 */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

/* 联系记录头部 */
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.patient-info {
  flex: 1;
}

.patient-name {
  font-size: 1.2rem;
  font-weight: 600;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.patient-name i {
  color: #667eea;
}

.patient-id {
  font-size: 0.875rem;
  color: #6c757d;
}

.contact-count {
  flex-shrink: 0;
}

.count-badge {
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.count-zero {
  background: #f8d7da;
  color: #721c24;
}

.count-low {
  background: #fff3cd;
  color: #856404;
}

.count-medium {
  background: #d1ecf1;
  color: #0c5460;
}

.count-high {
  background: #d4edda;
  color: #155724;
}

/* 详细信息 */
.contact-details,
.contact-person-details,
.employee-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .contact-details,
  .contact-person-details,
  .employee-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-label {
  font-weight: 600;
  color: #6c757d;
  font-size: 0.9rem;
  min-width: 80px;
  flex-shrink: 0;
}

.detail-value {
  color: #495057;
  font-size: 0.9rem;
  flex: 1;
}

.detail-value.phone {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #667eea;
}

.detail-value.amount {
  font-weight: 600;
  color: #28a745;
}

/* 联系人和职工信息 */
.contact-person,
.employee-info {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.contact-person-header,
.employee-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.contact-person-header i,
.employee-header i {
  color: #667eea;
}

/* 联系状态 */
.contact-status {
  background: #e7f3ff;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.status-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.status-item:last-child {
  margin-bottom: 0;
}

.status-label {
  font-weight: 600;
  color: #495057;
  font-size: 0.9rem;
  min-width: 70px;
}

.status-value {
  color: #495057;
  font-size: 0.9rem;
  flex: 1;
}

.status-value.contacted {
  color: #28a745;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 600;
}

/* 时间信息 */
.time-info {
  border-top: 1px solid #e9ecef;
  padding-top: 1rem;
}

.time-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.time-item i {
  color: #667eea;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.empty-icon {
  font-size: 4rem;
  color: #adb5bd;
  margin-bottom: 1rem;
}

.empty-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.empty-subtitle {
  color: #6c757d;
  font-size: 1rem;
}

/* 使用说明 */
.help-section {
  margin-bottom: 2rem;
}

.help-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.help-header {
  background: linear-gradient(135deg, #17a2b8, #138496);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.help-content {
  padding: 1.5rem;
}

.help-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
  position: relative;
  padding-left: 1.5rem;
}

.help-list li:last-child {
  border-bottom: none;
}

.help-list li::before {
  content: '•';
  color: #667eea;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* 加载覆盖层 */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.loading-content {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e9ecef;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

.loading-text {
  color: #495057;
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-content {
    padding: 1rem;
  }
  
  .contact-details,
  .contact-person-details,
  .employee-details {
    grid-template-columns: 1fr;
  }
  
  .contact-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .patient-name {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .mobile-content {
    padding: 0.75rem;
  }
  
  .query-body {
    padding: 1rem;
  }
  
  .contact-card {
    padding: 1rem;
  }
  
  .empty-state {
    padding: 2rem 1rem;
  }
  
  .empty-icon {
    font-size: 3rem;
  }
  
  .empty-title {
    font-size: 1.25rem;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  .mobile-contact-query {
    background: #121212;
    color: #ffffff;
  }

  .mobile-header {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    color: #e3f2fd;
    border-bottom-color: #444;
  }

  .header-title {
    color: #90caf9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 32px;
  }

  .header-actions .btn {
    border-color: #64b5f6;
    color: #64b5f6;
    background: rgba(0, 0, 0, 0.3);
  }

  .header-actions .btn:hover {
    background: #64b5f6;
    color: #000;
    border-color: #64b5f6;
  }
}

#app.dark-mode .mobile-contact-query {
  background: #121212;
  color: #ffffff;
}

#app.dark-mode .mobile-header {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  color: #e3f2fd;
  border-bottom-color: #444;
}

#app.dark-mode .header-title {
  color: #90caf9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 32px;
}

#app.dark-mode .header-actions .btn {
  border-color: #64b5f6;
  color: #64b5f6;
  background: rgba(0, 0, 0, 0.3);
}

#app.dark-mode .header-actions .btn:hover {
  background: #64b5f6;
  color: #000;
  border-color: #64b5f6;
}
</style>